package com.cerosoft.handler;

import java.net.URLEncoder;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import com.cerosoft.VideoHandlerActivity;
import com.cerosoft.api.Config;

public class VideoHandler implements IMediaHandler {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Override
	public void handling(final Context context, final String ipAddr,
			final String path, final String[] medias) {

		Intent intent = new Intent(context, VideoHandlerActivity.class);
		Bundle extras = new Bundle();
		extras.putString(Config.IP_ADDR, ipAddr);
		extras.putString(Config.PATH, path);
		extras.putStringArray(Config.MEDIAS, medias);
		intent.putExtras(extras);
		context.startActivity(intent);
	}
}
